﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;

namespace BIZ
{
    public class PaymentBIZ
    {
        public List<PAYMENT> GetAll()
        {
            return WebUtils.db.PAYMENTs.ToList();
        }

        public PAYMENT GetByID(Guid id)
        {
            return (from p in WebUtils.db.PAYMENTs where p.PaymentID.Equals(id) select p).FirstOrDefault();
        }
    }
}
